#define _CRT_SECURE_NO_WARNINGS 1


#include<iostream>
using namespace std;

int& test01()
{
	static int a = 10;
	return a;
}

int main()
{
	int& ret = test01();
	cout << "ret=" << ret << endl;
	test01() = 1000;
	cout << "ret=" << ret << endl;
	return 0;
}